<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<title>我的优惠劵</title>
<link href="__PUBLIC__/index/css/coupon.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="__PUBLIC__/index/js/jquery-1.8.1.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
  var heigt=document.documentElement.clientHeight;
  var width=document.documentElement.clientWidth;
  $(".login").css({"height":heigt,"width":width});
  //选项卡切换
  $(".tab li:first").addClass("selected");
	$(".tab_box ul:not(:first)").hide();
	
	$(".tab_menu li").click(function(){
		
		$(this).addClass("selected").siblings().removeClass("selected");
		var index=$(this).index();
		
		$(".tab_box ul").eq(index).show().siblings().hide();
		
	
	})

	$('.link').on('click',function(){
		var url = $(this).attr('link');
		if(!url) return false;
		location.href = url ;
	});

	});
</script>
</head>
<style type="text/css">
.login .top .name{text-align:center;margin-bottom:10px}
.login .top .name img{vertical-align:middle}
.login .top .name span{color:#FFF;margin-left:8px}
</style>
<body>
 <div class="login">
         <div class="top">
            <div class="bian"><a href="{:U('Gj/update_index')}"><img src="__PUBLIC__/index/image/bianji.png" width="103" height="35" /></a></div>
            <div class="login-title"><p><img src="{$img}" style="border-radius:50%;" width="110" height="110"></p></div>
          <div class="name"><?php if($da==1){?><img src="__PUBLIC__/index/image/zuan.png" width="20" height="20"><?php }?><span>{$nickname}</span></div>
            <ul>
                <li><a href="{:U('Gj/m_status')}"> 
                  <?php if($m_status==0){ ?><img src="__PUBLIC__/index/image/deail.png"><?php } ?>
                  <?php if($m_status==1){ ?><img src="__PUBLIC__/index/image/coupon/deail2.png"><?php } ?>
                  </a></li>
                <li><a href="{:U('Gj/coupon_list')}"><img src="__PUBLIC__/index/image/youh.png"></a>
                	<p><img src="__PUBLIC__/index/image/asas.png" width="15" height="15"></p>
                </li>
                <li><a href="https://payapp.weixin.qq.com/life/index?showwxpaytitle=1&exportkey=AdwmP9WcSgv7n%2BDFA%2F5EeB4%3D&clientversion=26031732&devicetype=android-22&pass_ticket=8BbXQS13EITPqoFsFioDJ9twPymaitnStoMlgOG1EUczWCbF%2F%2BtenYWB%2Bbuyjvhm#/"><img src="__PUBLIC__/index/image/fuwu1.png"></a></li>
                <li><a href="{:U('Gj/kefu')}"><img src="__PUBLIC__/index/image/kefu.png"></a></li>
            </ul>
         </div>         
         

<div class="tab">
 <div class="tab_menu">
         <ul>
            <li class="selected">可使用</li>
            <li>已使用</li>
            <li>已过期</li>
        </ul>
    </div><!--/tab_menu-->
    
    <div class="tab_box">
          <ul>
          <!-- 可使用 -->
             <volist name="list['list_w']" id="data">
             <li class="link" link="{:U('Gj/c_index',array('id'=>$data['id']))}">
             		<div class="logo"></div>	
             		<div class="juan">
             			<p class="seiz1">
                    <if condition="$data['type'] eq '1'">打折券</if>
                    <if condition="$data['type'] eq '2'">服务券</if>
                    <if condition="$data['type'] eq '3'">节日生日券</if>
                    <if condition="$data['type'] eq '4'">活动入场券</if>
                  </p>
								<p class="seiz2">{$data.q_name}</p>
								</div>
								<div class="info">
									<p>使用时间：<?php echo date('m-d',$data['starttime']);?>至<?php echo date('m-d',$data['endtime']);?></p>
									<p>适用范围：{$data.area}</p>
									<p>使用条件：{$data.tiaojian}</p>
								</div>
								<div class="status"></div>
             </li>
             
             </volist>
          </ul>
          <ul>
            <!-- 已使用 -->
            <volist name="list['list_y']" id="da">
             <li class="link" link="{:U('Gj/c_index',array('id'=>$da['id']))}">
             		<div class="logo"></div>	
             		<div class="juan">
             			<p class="seiz1">
                    <if condition="$da['type'] eq '1'">打折券</if>
                    <if condition="$da['type'] eq '2'">服务券</if>
                    <if condition="$da['type'] eq '3'">节日生日券</if>
                    <if condition="$da['type'] eq '4'">活动入场券</if>
                  </p>
								<p class="seiz2">{$da.q_name}</p>
								</div>
								<div class="info">
									<p>使用时间：<?php echo date('m-d',$da['starttime']);?>至<?php echo date('m-d',$da['endtime']);?></p>
									<p>适用范围：{$da.area}</p>
									<p>使用条件：{$da.tiaojian}</p>
								</div>
								<div class="status1"></div>
             </li>
            </volist>
          </ul>
          <ul>
          <!-- 已过期 -->
             <volist name="list['list_g']" id="arr">
             <li class="link" link="{:U('Gj/c_index',array('id'=>$arr['id']))}">
             		<div class="logo"></div>	
             		<div class="juan">
             			<p class="seiz1">
                    <if condition="$arr['type'] eq '1'">打折券</if>
                    <if condition="$arr['type'] eq '2'">服务券</if>
                    <if condition="$arr['type'] eq '3'">节日生日券</if>
                    <if condition="$arr['type'] eq '4'">活动入场券</if>
                  </p>
								<p class="seiz2">{$arr.q_name}</p>
								</div>
								<div class="info">
									<p>使用时间：<?php echo date('m-d',$arr['starttime']);?>至<?php echo date('m-d',$arr['endtime']);?></p>
									<p>适用范围：{$arr.area}</p>
									<p>使用条件：{$arr.tiaojian}</p>
								</div>
								<div class="status2"></div>
             </li>
             </volist>
          </ul>
         
    </div>
</div>


</div>
 <div class="tui"><a href="{:U('Gj/close')}">退出登录</a></div>
</body>
</html>








